/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: AbtractDictMap
 * Author:   zhouheng
 * Date:     2018/6/24 11:06
 * Description: 字典映射基表
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hengby.hengcrud.core.common.dictmap.base;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.HashMap;

/**
 * 〈一句话功能简述〉<br> 
 * 〈字典映射基表〉
 *
 * @author zhouheng
 * @create 2018/6/24
 * @since 1.0.0
 */
@Setter
@Getter
public abstract class AbtractDictMap {
    public HashMap<String,String> fieldWarpperDictory = new HashMap<>();
    public HashMap<String,String> dictory = new HashMap<>();

    public AbtractDictMap() {
        init();
        initBeWrapped();

    }

    public abstract void initBeWrapped();

    public abstract void init();

    public String get(String key) {
        return this.dictory.get(key);
    }

    public void put(String key, String value) {
        this.dictory.put(key, value);
    }

    public String getFieldWarpperMethodName(String key){
        return this.fieldWarpperDictory.get(key);
    }

    public void putFieldWrapperMethodName(String key,String methodName){
        this.fieldWarpperDictory.put(key,methodName);
    }

}